package service;

import java.util.ArrayList;

import dao.studentdao.StudentDao;
import dao.studentdao.StudentDaoImpl;

import model.Student;

public class queryStudentService {
    public ArrayList<Student> queryAllStudent(String schoolyear){
    	StudentDao studao=new StudentDaoImpl();
    	ArrayList<Student> studentlist=new ArrayList<Student>();
    	try {
			studentlist=studao.queryAllStudent(schoolyear);
		} catch (Exception e) {
			e.printStackTrace();
		}
    	return studentlist;
    }
}
